<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: coap_debug.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('coap__debug_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">coap_debug.h</div></div>
</div><!--header-->
<div class="contents">
<a href="coap__debug_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * coap_debug.h -- debug utilities</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2010-2011,2014 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * This file is part of the CoAP library libcoap. Please see README for terms</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of use.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> */</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#ifndef COAP_DEBUG_H_</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#define COAP_DEBUG_H_</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#ifndef COAP_DEBUG_FD</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="group__logging.html#gaab59644b8f0baa0292a41f4eb6aa9eff">   23</a></span><span class="preprocessor">#define COAP_DEBUG_FD stdout</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#ifndef COAP_ERR_FD</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="group__logging.html#ga4c9b62b551f5255a1d5ada7fb65ec155">   30</a></span><span class="preprocessor">#define COAP_ERR_FD stderr</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#ifdef HAVE_SYSLOG_H</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="preprocessor">#include &lt;syslog.h&gt;</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="keyword">typedef</span> <span class="keywordtype">short</span> <a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="preprocessor">#else</span></div>
<div class="foldopen" id="foldopen00041" data-start="{" data-end="};">
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">   41</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446adafd3577e2990c9b3db0cb7c2f20604c">   42</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446adafd3577e2990c9b3db0cb7c2f20604c">LOG_EMERG</a>=0, </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a81d3a95073074ab212668a29218cc343">   43</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a81d3a95073074ab212668a29218cc343">LOG_ALERT</a>,   </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a3537fbf756308b6267dd4354615eb413">   44</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a3537fbf756308b6267dd4354615eb413">LOG_CRIT</a>,    </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a0b4d9ad891dde7ae8deeb1704195858c">   45</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a0b4d9ad891dde7ae8deeb1704195858c">LOG_ERR</a>,     </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a8f6fe15bfe15104da6d1b360194a5400">   46</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a8f6fe15bfe15104da6d1b360194a5400">LOG_WARNING</a>, </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446acf862042315b7b30a2b7d395dcef3198">   47</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446acf862042315b7b30a2b7d395dcef3198">LOG_NOTICE</a>,  </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a6e98ff471e3ce6c4ef2d75c37ee51837">   48</a></span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a6e98ff471e3ce6c4ef2d75c37ee51837">LOG_INFO</a>,    </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>  <a class="code hl_enumvalue" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446ab9f002c6ffbfd511da8090213227454e">LOG_DEBUG</a>    </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446ab9f002c6ffbfd511da8090213227454e">   50</a></span>} <a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a>;</div>
</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> <a class="code hl_function" href="group__logging.html#ga10c3fbd56b0eb3a8722b27a65fc9b0ce">coap_get_log_level</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#ga8ac58ad9dc08bd68a5212f07d75e6948">coap_set_log_level</a>(<a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level);</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">   73</a></span><span class="keyword">typedef</span> void (*<a class="code hl_typedef" href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">coap_log_handler_t</a>) (<a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span> *message);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#ga0577c5a45b04d26f30a64e8e604b458e">coap_set_log_handler</a>(<a class="code hl_typedef" href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">coap_log_handler_t</a> handler);</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span><span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="group__logging.html#gaee6cf46cd10ec970c04179e788b79c39">coap_package_name</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span><span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="group__logging.html#ga771833fc4a485bb41d10fae37c8fcd14">coap_package_version</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="preprocessor">#if (defined(__GNUC__))</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#ga9cdced532dd20942747e340f359ad278">coap_log_impl</a>(<a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>              <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...) __attribute__ ((format(printf, 2, 3)));</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#ga9cdced532dd20942747e340f359ad278">coap_log_impl</a>(<a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span><span class="preprocessor">#ifndef coap_log</span></div>
<div class="foldopen" id="foldopen00122" data-start="" data-end="">
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="group__logging.html#gaff2785484e756c8ec2fce408f9b81f0f">  122</a></span><span class="preprocessor">#define coap_log(level, ...) do { \</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span><span class="preprocessor">  if ((int)((level))&lt;=(int)coap_get_log_level()) \</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span><span class="preprocessor">     coap_log_impl((level), __VA_ARGS__); \</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span><span class="preprocessor">} while(0)</span></div>
</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span><span class="preprocessor">#include &quot;<a class="code" href="pdu_8h.html">pdu.h</a>&quot;</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#gad382349e7b993e7f583854d3e50f52e9">coap_set_show_pdu_output</a>(<span class="keywordtype">int</span> use_fprintf);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#ga3123fcde8310c0f7cb48897a683baef6">coap_show_pdu</a>(<a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level, <span class="keyword">const</span> <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *pdu);</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span> </div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span><span class="keywordtype">void</span> <a class="code hl_function" href="group__logging.html#gace7d5d32535b328bdb5c90ef64c7d63e">coap_show_tls_version</a>(<a class="code hl_enumeration" href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a> level);</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span><span class="keywordtype">char</span> *<a class="code hl_function" href="group__logging.html#ga11363937b50a90ff245460e1abc13e84">coap_string_tls_version</a>(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> bufsize);</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span><span class="keyword">struct </span><a class="code hl_struct" href="structcoap__address__t.html">coap_address_t</a>;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno">  179</span><span class="keywordtype">size_t</span> <a class="code hl_function" href="group__logging.html#ga6a4f5ef637bf85aa161adfe73ac81ff0">coap_print_addr</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code hl_struct" href="structcoap__address__t.html">coap_address_t</a> *address,</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno">  180</span>                       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__address__t.html#a1734d28f40124b6f35b8cde9afbdf344">size</a>);</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span><span class="keywordtype">int</span> <a class="code hl_function" href="coap__debug_8h.html#a25c1953496b038559c058075586f6500">coap_debug_set_packet_loss</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *loss_level);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span><span class="keywordtype">int</span> <a class="code hl_function" href="coap__debug_8h.html#af01fc56422e6401f529b053b61e65cad">coap_debug_send_packet</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span> </div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_DEBUG_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="acoap__debug_8h_html_a25c1953496b038559c058075586f6500"><div class="ttname"><a href="coap__debug_8h.html#a25c1953496b038559c058075586f6500">coap_debug_set_packet_loss</a></div><div class="ttdeci">int coap_debug_set_packet_loss(const char *loss_level)</div><div class="ttdoc">Set the packet loss level for testing.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00793">coap_debug.c:793</a></div></div>
<div class="ttc" id="acoap__debug_8h_html_af01fc56422e6401f529b053b61e65cad"><div class="ttname"><a href="coap__debug_8h.html#af01fc56422e6401f529b053b61e65cad">coap_debug_send_packet</a></div><div class="ttdeci">int coap_debug_send_packet(void)</div><div class="ttdoc">Check to see whether a packet should be sent or not.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00833">coap_debug.c:833</a></div></div>
<div class="ttc" id="agroup__logging_html_ga0577c5a45b04d26f30a64e8e604b458e"><div class="ttname"><a href="group__logging.html#ga0577c5a45b04d26f30a64e8e604b458e">coap_set_log_handler</a></div><div class="ttdeci">void coap_set_log_handler(coap_log_handler_t handler)</div><div class="ttdoc">Add a custom log callback handler.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00742">coap_debug.c:742</a></div></div>
<div class="ttc" id="agroup__logging_html_ga10c3fbd56b0eb3a8722b27a65fc9b0ce"><div class="ttname"><a href="group__logging.html#ga10c3fbd56b0eb3a8722b27a65fc9b0ce">coap_get_log_level</a></div><div class="ttdeci">coap_log_t coap_get_log_level(void)</div><div class="ttdoc">Get the current logging level.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00071">coap_debug.c:71</a></div></div>
<div class="ttc" id="agroup__logging_html_ga11363937b50a90ff245460e1abc13e84"><div class="ttname"><a href="group__logging.html#ga11363937b50a90ff245460e1abc13e84">coap_string_tls_version</a></div><div class="ttdeci">char * coap_string_tls_version(char *buffer, size_t bufsize)</div><div class="ttdoc">Build a string containing the current (D)TLS library linked with and built for version.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00658">coap_debug.c:658</a></div></div>
<div class="ttc" id="agroup__logging_html_ga3123fcde8310c0f7cb48897a683baef6"><div class="ttname"><a href="group__logging.html#ga3123fcde8310c0f7cb48897a683baef6">coap_show_pdu</a></div><div class="ttdeci">void coap_show_pdu(coap_log_t level, const coap_pdu_t *pdu)</div><div class="ttdoc">Display the contents of the specified pdu.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00461">coap_debug.c:461</a></div></div>
<div class="ttc" id="agroup__logging_html_ga53c7b97a7af4d62d8c1678d658cc7446"><div class="ttname"><a href="group__logging.html#ga53c7b97a7af4d62d8c1678d658cc7446">coap_log_t</a></div><div class="ttdeci">coap_log_t</div><div class="ttdoc">Pre-defined log levels akin to what is used in syslog.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00041">coap_debug.h:41</a></div></div>
<div class="ttc" id="agroup__logging_html_ga6a4f5ef637bf85aa161adfe73ac81ff0"><div class="ttname"><a href="group__logging.html#ga6a4f5ef637bf85aa161adfe73ac81ff0">coap_print_addr</a></div><div class="ttdeci">size_t coap_print_addr(const struct coap_address_t *address, unsigned char *buffer, size_t size)</div><div class="ttdoc">Print the address into the defined buffer.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00171">coap_debug.c:171</a></div></div>
<div class="ttc" id="agroup__logging_html_ga771833fc4a485bb41d10fae37c8fcd14"><div class="ttname"><a href="group__logging.html#ga771833fc4a485bb41d10fae37c8fcd14">coap_package_version</a></div><div class="ttdeci">const char * coap_package_version(void)</div><div class="ttdoc">Get the library package version.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00061">coap_debug.c:61</a></div></div>
<div class="ttc" id="agroup__logging_html_ga8ac58ad9dc08bd68a5212f07d75e6948"><div class="ttname"><a href="group__logging.html#ga8ac58ad9dc08bd68a5212f07d75e6948">coap_set_log_level</a></div><div class="ttdeci">void coap_set_log_level(coap_log_t level)</div><div class="ttdoc">Sets the log level to the specified value.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00076">coap_debug.c:76</a></div></div>
<div class="ttc" id="agroup__logging_html_ga9cdced532dd20942747e340f359ad278"><div class="ttname"><a href="group__logging.html#ga9cdced532dd20942747e340f359ad278">coap_log_impl</a></div><div class="ttdeci">void coap_log_impl(coap_log_t level, const char *format,...)</div><div class="ttdoc">Writes the given text to COAP_ERR_FD (for level &lt;= LOG_CRIT) or COAP_DEBUG_FD (for level &gt;= LOG_ERR).</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00747">coap_debug.c:747</a></div></div>
<div class="ttc" id="agroup__logging_html_gace7d5d32535b328bdb5c90ef64c7d63e"><div class="ttname"><a href="group__logging.html#gace7d5d32535b328bdb5c90ef64c7d63e">coap_show_tls_version</a></div><div class="ttdeci">void coap_show_tls_version(coap_log_t level)</div><div class="ttdoc">Display the current (D)TLS library linked with and built for version.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00651">coap_debug.c:651</a></div></div>
<div class="ttc" id="agroup__logging_html_gad382349e7b993e7f583854d3e50f52e9"><div class="ttname"><a href="group__logging.html#gad382349e7b993e7f583854d3e50f52e9">coap_set_show_pdu_output</a></div><div class="ttdeci">void coap_set_show_pdu_output(int use_fprintf)</div><div class="ttdoc">Defines the output mode for the coap_show_pdu() function.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00066">coap_debug.c:66</a></div></div>
<div class="ttc" id="agroup__logging_html_gaee6cf46cd10ec970c04179e788b79c39"><div class="ttname"><a href="group__logging.html#gaee6cf46cd10ec970c04179e788b79c39">coap_package_name</a></div><div class="ttdeci">const char * coap_package_name(void)</div><div class="ttdoc">Get the library package name.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8c_source.html#l00057">coap_debug.c:57</a></div></div>
<div class="ttc" id="agroup__logging_html_gafa40ccad74a5cd6a6d8a52e70be08611"><div class="ttname"><a href="group__logging.html#gafa40ccad74a5cd6a6d8a52e70be08611">coap_log_handler_t</a></div><div class="ttdeci">void(* coap_log_handler_t)(coap_log_t level, const char *message)</div><div class="ttdoc">Logging call-back handler definition.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00073">coap_debug.h:73</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446a0b4d9ad891dde7ae8deeb1704195858c"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a0b4d9ad891dde7ae8deeb1704195858c">LOG_ERR</a></div><div class="ttdeci">@ LOG_ERR</div><div class="ttdoc">Error.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00045">coap_debug.h:45</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446a3537fbf756308b6267dd4354615eb413"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a3537fbf756308b6267dd4354615eb413">LOG_CRIT</a></div><div class="ttdeci">@ LOG_CRIT</div><div class="ttdoc">Critical.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00044">coap_debug.h:44</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446a6e98ff471e3ce6c4ef2d75c37ee51837"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a6e98ff471e3ce6c4ef2d75c37ee51837">LOG_INFO</a></div><div class="ttdeci">@ LOG_INFO</div><div class="ttdoc">Information.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00048">coap_debug.h:48</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446a81d3a95073074ab212668a29218cc343"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a81d3a95073074ab212668a29218cc343">LOG_ALERT</a></div><div class="ttdeci">@ LOG_ALERT</div><div class="ttdoc">Alert.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00043">coap_debug.h:43</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446a8f6fe15bfe15104da6d1b360194a5400"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446a8f6fe15bfe15104da6d1b360194a5400">LOG_WARNING</a></div><div class="ttdeci">@ LOG_WARNING</div><div class="ttdoc">Warning.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00046">coap_debug.h:46</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446ab9f002c6ffbfd511da8090213227454e"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446ab9f002c6ffbfd511da8090213227454e">LOG_DEBUG</a></div><div class="ttdeci">@ LOG_DEBUG</div><div class="ttdoc">Debug.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00050">coap_debug.h:49</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446acf862042315b7b30a2b7d395dcef3198"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446acf862042315b7b30a2b7d395dcef3198">LOG_NOTICE</a></div><div class="ttdeci">@ LOG_NOTICE</div><div class="ttdoc">Notice.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00047">coap_debug.h:47</a></div></div>
<div class="ttc" id="agroup__logging_html_gga53c7b97a7af4d62d8c1678d658cc7446adafd3577e2990c9b3db0cb7c2f20604c"><div class="ttname"><a href="group__logging.html#gga53c7b97a7af4d62d8c1678d658cc7446adafd3577e2990c9b3db0cb7c2f20604c">LOG_EMERG</a></div><div class="ttdeci">@ LOG_EMERG</div><div class="ttdoc">Emergency.</div><div class="ttdef"><b>Definition</b> <a href="coap__debug_8h_source.html#l00042">coap_debug.h:42</a></div></div>
<div class="ttc" id="apdu_8h_html"><div class="ttname"><a href="pdu_8h.html">pdu.h</a></div><div class="ttdoc">Pre-defined constants that reflect defaults for CoAP.</div></div>
<div class="ttc" id="astructcoap__address__t_html"><div class="ttname"><a href="structcoap__address__t.html">coap_address_t</a></div><div class="ttdoc">multi-purpose address abstraction</div><div class="ttdef"><b>Definition</b> <a href="address_8h_source.html#l00062">address.h:62</a></div></div>
<div class="ttc" id="astructcoap__address__t_html_a1734d28f40124b6f35b8cde9afbdf344"><div class="ttname"><a href="structcoap__address__t.html#a1734d28f40124b6f35b8cde9afbdf344">coap_address_t::size</a></div><div class="ttdeci">socklen_t size</div><div class="ttdoc">size of addr</div><div class="ttdef"><b>Definition</b> <a href="address_8h_source.html#l00063">address.h:63</a></div></div>
<div class="ttc" id="astructcoap__pdu__t_html"><div class="ttname"><a href="structcoap__pdu__t.html">coap_pdu_t</a></div><div class="ttdoc">structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00285">pdu.h:285</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="coap__debug_8h.html">coap_debug.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
